#CACHE{0}
<?php        
    include_spip('functions/pdk_common');
    include_spip('inc/minipres');
    $extension = pdk_load_class('AlohacartPaymentPlatilka', 'classes/payment');        
    $order_mdl = pdk_load_class('AlohacartOrderModel', 'classes');
    if ($_REQUEST && $extension->CheckSignature($_REQUEST) && _request('status')==4) {
        $extension->PaymentSuccess(_request('order_id'), $_REQUEST);            
        echo minipres('<:alohacart_payment_platilka:payment_succes:>', 
            '<div style="text-align:center;"><a href="#URL_SITE_SPIP"><:alohacart:go_to_main_page:></a></div>');
    } else {        
        echo minipres('<:alohacart_payment_platilka:payment_failed:><br />'._request('message'), 
            '<div style="text-align:center;"><a href="#URL_SITE_SPIP"><:alohacart:go_to_main_page:></a></div>');
    } 
?>